package afaas.framework.util;

public class CheckUtil {
    public static void checkArgument(boolean b){
        if (!b) {
            throw new IllegalArgumentException();
        }
    }

    public static <T> T checkNotNull(T t){
        if (t == null) {
            throw new NullPointerException();
        }
        return t;
    }
}
